package com.ag.score.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("t_user")
public class TUser extends Model<TUser> {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("phone")
    @ApiModelProperty("phone")
    private String phone;

    @TableField("pass")
    @ApiModelProperty("pass")
    private String pass;

    @TableField("score")
    @ApiModelProperty("score")
    private double score;

    @TableField(exist = false)
    private String token;
}
